<?php
class Core
{
	static public function assertSystemRequirements()
	{
		// Check for PHP5
		version_compare('5', PHP_VERSION, '<') or
			die('<strong>CMS Error:</strong> This CMS requires PHP5 or higher to operate properly.');
		
		// Check for PDO
		extension_loaded('pdo_sqlite') or
			die('<strong>CMS Error:</strong> This CMS requires the php_pdo_sqlite extension. Please make sure this extension is available.');
	}
	
	static public function inc($file) {
		$success = include_once(Config::get('path') . $file);
		
		$success or
			Event::log('framework.core', 'Could not include "'.$file.'"', Event::LOG_ERROR);
	}
}
?>